#include "gofgame/dungeonkeeper/MainScene.h"
#include "gofgame/dungeonkeeper/configuration/LevelParser.h"
#include "gofgame/dungeonkeeper/configuration/LevelConf.h"

using namespace gofgame::dungeonkeeper;
using namespace gofgame::dungeonkeeper::configuration;
using namespace cocos2d;


bool MainScene::init() {
	if (CCScene::init()) {
		LevelParser *lvp = LevelParser::getSharedLevelParser();
		//LevelParser *lvp = new LevelParser();
		LevelConf *lvc = lvp->parse("level1.xml");
		CCLOG("bg IS %s",lvc->getBackgroundImage());
		CCLOG("bgs IS %s",lvc->getBackgroundSound());
		CCLOG("CODE IS %s",lvc->getCode());
		CCLOG("CODE IS %s",lvc->getName());
	}
    return true;
}



